<template lang="pug">
  div.module.map-info
    div.title(:style="{color: titleColor}") {{title}}
    div.sub-title {{subTitle}}
    slot
</template>

<script>
export default {
  name: "ModuleMapInfo",
  props: {
    title: {
      type: String,
      default: '',
    },
    subTitle: {
      type: String,
      default: '',
    },
    titleColor: {
      type: String,
      default: '#FFF',
    }
  }
}
</script>

<style lang="scss" scoped>
.map-info{
  position: absolute;
  bottom: rem(80);
  right: rem(100);
  .title,
  .sub-title{
    color: #FFFFFF;
    font-weight: 700;
  }
  .title{
    @include fontSie(30);
    margin-bottom: rem(10);
  }
  .sub-title{
    @include fontSie(26);
    margin-bottom: rem(24);
  }
}
</style>
